// 解构 createRoot  react-dom/client
import { createRoot } from "react-dom/client";

// 导入根组件
import App from "./App";

// 创建root对象
const root = createRoot(document.querySelector("#root") as HTMLDivElement);

// 渲染
root.render(<App />);
